/**
 * Copyright - Accor - All Rights Reserved www.accorhotels.com
 */
package com.my.imq.business.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.my.imq.dao.JvmDao;
import com.my.imq.model.Jvm;
import com.my.imq.business.JavaMemoryService;

/**
 * @author <a href="MABDELOUHAB">MABDELOUHAB</a>
 * created 25 janv. 2013
 * @since 
 * @version $Id$
 */
@Transactional
@Service(value="javaMemoryService")
public class JavaMemoryServiceImpl
    implements JavaMemoryService
{
    @Autowired
    JvmDao jvmDao;

    /*
     * (non-Javadoc)
     * @see com.hamada.imq.service.JavaMemoryService#persist(com.hamada.imq.model.Jvm)
     */
    public void persist( Jvm jvm )
    {
        jvmDao.persist( jvm );
    }

    /*
     * (non-Javadoc)
     * @see com.hamada.imq.service.JavaMemoryService#findAll()
     */
    public List<Jvm> findAll()
    {
        return jvmDao.findAll();
    }

    /*
     * (non-Javadoc)
     * @see com.hamada.imq.service.JavaMemoryService#flush()
     */
    public void flush()
    {
        jvmDao.flush();
    }

    /**
     * @param jvmDao the jvmDao to set
     */
    public void setJavaMemoryDao( JvmDao jvmDao )
    {
        this.jvmDao = jvmDao;
    }

}
